<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="loginModule">		
<form  id="loginForm"  method="post" action="/fengshang/loginUser.do">
	<div style="padding-left:6px" id="loginModuleMsg"></div>
	<div class="formt">${userAccount}</div>
	<div class="reg-item"><input id="loginName" name="name" type="text" value="" class="username"/></div>
	<div class="formt">${userPassword}</div>
	<div class="reg-item"><input id="loginPassword" name="password" value="" type="password" class="password"/></div>
	<div class="reg-item">
		<input id="reg" class="button" name="button" value="${btnRegister}" type="button"/>
		<input id="login" class="button" name="button" value="${btnLogin}" type="button"/>
	</div>
</form> 
</div>
<!-- display after user login -->
<div id="userInfo" style="display:none">		
<form  id="userInfoForm"  method="post" action="/fengshang/serviceUser.do">
	<div style="padding-left:6px" id="userInfoMsg"></div>
	<div><span style="font-weight: bold">${userAccount}：</span><span id="userInfo_uname"></span></div>
	<div><span style="font-weight: bold">${userEmail}：</span><span id="userInfo_uemail"></span></div>
	<div style="padding-top:4px"><span style="color:red">您有5封信留言！</span></div>
	<div style="border:1px solid #eee6db;margin-top:2px">
	<div class="reg-item">
	    <input type="hidden" name="name" id="userInfo_unameLogout"/>
		<input id="myMessage" class="button" name="button" value="${myMessages}" type="button"/>
		<input id="allMessage" class="button" name="button" value="${allMessages}" type="button"/>
	</div>
	<div class="reg-item">
		<input id="update" class="button" name="button" value="${btnUpdateUserInfo}" type="button"/>
		<input id="logout" class="button" name="button" value="${btnLogout}" type="button"/>
	</div>
	</div>
</form> 
</div>
<div id="userLogoutDialog">
</div>		
</body>
</html>